<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编写程序，让用户输入税前工资，弹出对应的公积金数额。</title>
    <script>
        var n = prompt("请输入税前工资"), tax = n * 0.1 * 2;
        alert(tax)
    </script>
</head>
<body>
    
</body>
</html>